<% lineconst = 3 -%>
<% linenum = groupuserlist.size/lineconst -%>
<% leftnum = groupuserlist.size%lineconst -%>
<table width="100%">
<% for i in 0...linenum -%>
     <tr>
     <% for j in 0...lineconst -%>
       <td  align="center" valign="top" width="<%= 100/lineconst %>%">
       <%= render :partial => 'shared/userThumbImage', :object =>groupuserlist[i*lineconst+j]%>
       
       <br/>
       <%= link_to "#{groupuserlist[i*lineconst+j].display_name}", user_path(groupuserlist[i*lineconst+j].login) %>
       </td>
     <% end -%>
     </tr>
<% end -%>
<% if leftnum > 0 -%>
  <tr>
  <% for i in 0...leftnum -%>
    <td  align="center" valign="top" width="<%= 100/lineconst %>%">
    <%= render :partial => 'shared/userThumbImage', :object =>groupuserlist[linenum*lineconst+i]%><br/>
    <%= link_to "#{groupuserlist[linenum*lineconst+i].display_name}", user_path(groupuserlist[linenum*lineconst+i].login) %>
    </td>
  <% end -%>
  <% for i in 0...(lineconst-leftnum) -%>
    <td  align="center" valign="top" width="<%= 100/lineconst %>%">
    &nbsp;
    </td>
  <% end -%>
  </tr>
<% end %>
</table>
